package cn.wolfcode.p2p.business.domain;

import cn.wolfcode.p2p.base.domain.BaseDomain;
import com.alibaba.druid.support.json.JSONUtils;
import lombok.Getter;
import lombok.Setter;
import java.util.HashMap;

@Getter
@Setter
public class PlatformBankInfo extends BaseDomain {

    //银行名称
    private String bankName;
    //账户名称
    private String accountName;
    //账号
    private String accountNumber;
    //银行支行名称
    private String bankForkName;

    public String getJsonString() {
        HashMap<Object, Object> map = new HashMap<>();
        map.put("id", id);
        map.put("bankName", bankName);
        map.put("accountName", accountName);
        map.put("accountNumber", accountNumber);
        map.put("bankForkName", bankForkName);
        return JSONUtils.toJSONString(map);
    }

}